
/**
 * 接口返回数据主体
 * Create by wuqian
 */

class ResultDataModel {
  int code;
  String msg;
  bool success;
  var data;

  ResultDataModel({
    required this.code,
    required this.msg,
    required this.success,
    this.data
  });

  factory ResultDataModel.fromJson(Map<String, dynamic> jsonObj) {
    return new ResultDataModel(
      code: jsonObj["code"],
      msg: jsonObj["msg"],
      success: jsonObj['success'],
      data: jsonObj['data']
    );
  }
}